import Vue from 'vue'
import Router from 'vue-router'
// import Home from './views/Home.vue'
import Layout from './views/Layout'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'login',
      // component: Home
      component: () => import('./views/UOAP/Login.vue')
    },

    {
      path: '/AllformFile',
      name: '1111',
      // component: Home
      component: () => import('./views/men_hu/AllformFile.vue')
    },
    {
      path: '/Layout/Home',
      name: 'LayouttHome',
      component: Layout,
      redirect: '/uoap',
      hidden: true,
      // eslint-disable-next-line key-spacing
      children:[
        {
          path: '/uoap',
          name: 'uoapHome',
          component: () => import('@/views/UOAP/home.vue')
        }
      ]
    },
    {
      path: '/Customer',
      component :Layout,
      name:'customermanagement',
      redirect: '/Customer/management',
      hidden: true,
      meta: {title:'企业客户'},
      children:[{
        path: '/Customer/management',
        name:'list',
        meta: {title:'新增客户'},
        component:() => import('@/views/customer/management.vue')
      },
      {
        path:'/kehuguanli',
        name:'kehu',
        meta: {title:'企业客户列表'},
        component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
      }
    ]  },
    {
      // 动态路由   ----:id
      path: '/zganghu',
      component: Layout,
      name: 'Container',
      redirect: '/zhanghu/Container',
      meta: {title:'个人客户'},
      children:[{
        path: '/zhanghu/Container',
        name:'Containerzhanghu',
        component: () => import('./views/cs/Container.vue'),
        meta: {title:'新增客个人客户'},
      },
      {
        path: '/zhanghu/menhu',
        name:'Containerzhanghu',
        component: () => import('./views/cs/menhu.vue'),
        meta: {title:'新增门户'},
      },
    ]
    },

    {
      path: '/Account',
      component: Layout,
      name: 'Account',
      redirect: '/Account/management',
      hidden: true,
      meta: {title:'账户列表'},
      children:[{
        path:'/Account/management',
        name:'kehu',
        component: () => import(/* webpackChunkName: "about" */ '@/views/customer/accountmanagement.vue'),
        meta: {title:'账户列表'},
      }]
    },
    {
      path: '/chart',
      component: Layout,
      name: 'Account',
      redirect: '/zhanghu/chart',
      hidden: true,
      meta: {title:'账户列表'},
      children:[{
        path:'/zhanghu/chart',
        name:'kehu',
        component: () => import(/* webpackChunkName: "about" */ '@/views/chart/chart.vue'),
        meta: {title:'账户列表'},
      },
      {
        path:'/zhanghu/steps',
        name:'kehu',
        component: () => import(/* webpackChunkName: "about" */ '@/views/chart/steps_s.vue'),
        meta: {title:'步骤'},
        children:[
          { path: ''      ,    component: () => import(/* webpackChunkName: "about" */ '@/views/chart/steps1.vue'),  },
          { path: 'step1',    component: () => import(/* webpackChunkName: "about" */ '@/views/chart/steps1.vue'), },
          { path: 'step2',    component: () => import(/* webpackChunkName: "about" */ '@/views/chart/steps2.vue'),  },
          { path: 'step3',    component: () => import(/* webpackChunkName: "about" */ '@/views/chart//steps2.vue'),  },
          { path: 'step4',    component: () => import('./views/cs/Container.vue'),  }
        ]
      }
    ]
    },
    {
      path: '/openAccount',
      component: Layout,
      name: 'openAccount',
      redirect: '/openAccount/management',
      hidden: true,
      meta: {title:'开户户列表'},
      children:[{
        path:'/openAccount/management',
        name:'openAccount',
        component: () => import(/* webpackChunkName: "about" */ './views/cs/Layout.vue'),
        meta: {title:'开户户列表'},
      }]
    },
    {
      path: '/Summarydetails',
      component: Layout,
      name: 'Summarydetails',
      redirect: '/Summarydetails',
      hidden: true,
      meta: {title:'汇总'},
      children:[{
        path:'/Summarydetails',
        name:'openAcSummarydetailscount',
        component: () => import(/* webpackChunkName: "about" */ './views/fas/Summarydetails.vue'),
        meta: {title:'汇总明细'},
      }]
    },
    {
      path: '/Summarydetails1',
      component: Layout,
      name: 'Summarydetails',
      redirect: '/Summarydetails1',
      hidden: true,
      meta: {title:'汇总'},
      children:[{
        path:'/Summarydetails1',
        name:'openAcSummarydetailscount',
        component: () => import(/* webpackChunkName: "about" */ './views/fas/Summarydetails1.vue'),
        meta: {title:'汇总明细'},
      }]
    },
    {
      path: '/Summarydetails3',
      component: Layout,
      name: 'Summarydetails',
      redirect: '/Summarydetails3',
      hidden: true,
      meta: {title:'汇总'},
      children:[{
        path:'/Summarydetails3',
        name:'openAcSummarydetailscount',
        component: () => import(/* webpackChunkName: "about" */ './views/fas/Summarydetails3.vue'),
        meta: {title:'汇总明细'},
      }]
    },

    {
      path: '/text',
    
      name: 'text',
    
      component: () => import('./views/text.vue')
    },
    {
      path: '/layout',
      name: 'layout',
      component: () => import('./views/cs/Layout.vue')
    },
    {
      // 动态路由   ----:id
      path: '/zganghu',
      component: Layout,
      name: 'Container',
      children:[{
        path: '/zhanghu/Container',
        name:'账号',
        component: () => import('./views/cs/Container.vue')
      }]
    },
    // {
    //   path: '/uoap/login',
    //   name: 'login',
    //   component: () => import('./views/UOAP/Login.vue')
    // }
  ]
})
